<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>marelab dev</title>
<!--  Marelab CSS -->
<link rel="stylesheet" href="css/marelab.css" />
<link href="favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body,td,th {
	color: #FFF;
	text-align: left;
	link: #FFF;
	vlink: #FFF;
}
body {
	background-color: #000000;
}
.MENUM {
	font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
	font-size: 18px;
	text-align: left;
}
.mm {
	text-align: left;
}
</style>

<!--  JQUERY CSS -->
<link rel="stylesheet" href="script/jquery/themes/dark-hive/jquery-ui.css" />

<style type="text/css">
.PluginButton {
	background-color:#114a69;
	-moz-border-radius:9px;
	-webkit-border-radius:9px;
	border-radius:9px;
	display:inline-block;
	color:#ffffff;
	font-family:Arial;
	font-size:15px;
	font-weight:bold;
	padding:5px 10px;
	width: 120px;
	text-decoration:none;
}
</style>

<!--  JQUERY INCLUDE -->
<script src="script/jquery/jquery-1.8.2.js"></script>

<!-- Language includes -->
<script src="script/marelab/marelabdev_lan_EN.js"></script>

<script>
function CGI_Test()
{
	//TestMarelabCGI();
	alert(TestMarelabCgi("COMMAND=MARELAB_CGI_VERSION"));
}
function NUCLEUS_Test()
{
	jsonRET = getMarelabData('COMMAND=mcu_VERSION');
	alert(jsonRET.PARAMETER);

}
function TestMarelabCgi(what2Get) {
	var dataret;
	$.ajax({
		type : "POST",
		//url: 'cgi.php',
		url : 'cgi/marelab-cgi',
		data : what2Get,
		async : false,
		beforeSend : function(x) {
			if (x && x.overrideMimeType) {
				x.overrideMimeType("application/j-son;charset=UTF-8");
			}
		},
		dataType : "text",
		success : function(data) {
			dataret = data;
			if (data.ERROR) {
				// ERROR HAS HAPPEND 
				alert(data.ERROR);
			}
		}
	});
	return dataret;
}

function getMarelabData(what2Get) {
	var dataret;
	$.ajax({
		type : "POST",
		//url: 'cgi.php',
		url : 'cgi/marelab-cgi',
		data : what2Get,
		async : false,
		beforeSend : function(x) {
			if (x && x.overrideMimeType) {
				x.overrideMimeType("application/j-son;charset=UTF-8");
			}
		},
		dataType : "json",
		success : function(data) {
			dataret = data;
			if (data.ERROR) {
				// ERROR HAS HAPPEND 
				alert(data.ERROR);
			}
		}
	});
	return dataret;
}


	function changeText(name){
		document.getElementById(name).innerHTML = mlang[name];
	}
</script>




</head>

<body link="#FFF" vlink="#FFF" >

<div id="titel_setup">
		<div id="TOOLBAR-TITEL"><img src="img/logo2-marelab.png"></div>
</div>
	
	<div id="container-content">
		<div id="tabs">
			<!--  
			<div id="LINKS">
				<p class="PluginButton" onClick="SetupMenu();">Setup</p>	
			</div>
			-->
			<div id="tabs-1">
				<div id="RECHTS">
					
					<!-- **************   SETUP CONTENT ********************* -->
					<div id="titel_setup_content">
						<div id="TOOLBAR-TITEL" ><span id="marelabDevSystemTitle"><script>changeText('marelabDevSystemTitle');</script></span></a></div>
					</div>
					
					<div id="container">
						<div id="LINKS">
							<!-- FILL -->
						</div>
						<div id="RECHTS" class=".ui-accordion-header">
			
							<br></br>
							<table border="0" cellspacing="0" cellpadding="0">
								<tr>
									<th scope="col" align="left"><a href="http://www.marelab.org">www.marelab.org</a></th>
									<th scope="col" align="left"><span id="marelabLinkTextWeb"><script>changeText('marelabLinkTextWeb');</script></span></th>
								</tr>
								<tr>
									<th scope="col" align="left"><a href="http://marelab-solar.googlecode.com/git/">CODE</a></th>
									<th scope="col" align="left"><span id="marelabLinkTextSVN"><script>changeText('marelabLinkTextSVN');</script></span></th>
								</tr>
								<tr>
									<th scope="col" align="left"><a href="http://127.0.0.1/marelab-start.html">marelab gui</a></th>
									<th scope="col" align="left"><span id="marelabLiveSystem"><script>changeText('marelabLiveSystem');</script></span></th>
								</tr>
							</table>

							</th>
							</tr>

							</table>
						</div>
						<br></br>
					</div>



					<div id="titel_setup_content">
						<div id="TOOLBAR-TITEL" ><span id="marelabLiveSystemtest"><script>changeText('marelabLiveSystemtest');</script></span></div>
					</div>
					
					
					<div id="container">
						<!-- MARELAB TEST -->
						<!-- ************************* -->
						<div id="LINKS">
							<!-- FILL -->
						</div>
						<div id="RECHTS">
							<div id="marelabtest">
							<button onclick="CGI_Test();">test marelab cgi</button><br></br>
							<button onclick="NUCLEUS_Test();">test marelab nucleus</button>
								<!-- LIST OF PLUGINS -->
								<!-- ************************* -->
							</div>
						</div>
					</div>
					<!-- **************   END SETUP CONTENT ********************* -->

				</div>
				<!-- </div> CONTAINER-RIGHT -->
			</div>
		</div>
	</div>
		<div id="footer">
			<div id="TOOLBAR-TITEL">
				<a href="http://www.marelab.org">open source reef control www.marelab.org</a>
			</div>
		<div id="TOOLBAR"></div>
	</div>
</body>
</html>
